import { BrowserRouter, Routes, Route } from "react-router-dom"
import Layout from "../layout"
import Error from "../views/404"
import Home from "../views/home"
import Go from "../views/go"

const BaseRouter = () => (
  <BrowserRouter>
    <Routes>
      <Route path="/" element={<Layout />}>
        <Route path="/home" element={<Home />}></Route>
        <Route path="/go" element={<Go />}></Route>
      </Route>
      <Route path="*" element={<Error />}></Route>
    </Routes>
  </BrowserRouter>
)

export default BaseRouter;
